<?php
namespace app\cdyoa\controller;

class Index extends Base
{
    //框架主体
    public function index()
    {
        $this->view->engine->layout(false);
        return $this->fetch();
    }
    
    //欢迎页
    public function welcome(){
        $d = [
            'server' => [
                'ip' => com_server_ip(),
                'http_host'   => $_SERVER["HTTP_HOST"],
                'server_port' => $_SERVER['SERVER_PORT'],
                'php_uname'   => php_uname(),
                'dirname'     => dirname(__FILE__),
                'type'        => php_uname('s'),
                'language'    => $_SERVER['HTTP_ACCEPT_LANGUAGE'],
                'now_time'    => date("Y-m-d l H:i:s A"),
                'pc_name'     => gethostbyaddr($_SERVER['REMOTE_ADDR']),
            ],
        ];
        return view('', $d);
    }

}
